<template>
	<view :style="{top: paddingTop +'px'}" class="back icon-left"  @click="goodsBox" />
  </template>
  
  <script setup>
   //   顶部安全区域
  const paddingTop = uni.getWindowInfo().safeArea.top

  // 返回上一页
  const goodsBox = () => {
	uni.navigateBack()
  }

  </script>
  
  <style>
  .back {
	position: absolute;
	left: 50rpx;
	z-index: 9;
  
	display: flex;
	justify-content: center;
	align-items: center;
	width: 60rpx;
	height: 60rpx;
	border-radius: 50%;
	font-size: 23px;
	color: #fff;
	background-color: rgba(0, 0, 0, 0.5);
  }
  </style>